package com.aerospace.dubboInterface;

import java.util.concurrent.CompletableFuture;

/**
 * @ClassName DubboService
 * @Description
 * @Author yuhang11
 * @Date 2022/10/21 2:26 下午
 * @Version 1.0
 */
public interface InterfaceService {

    String sayHello(String name);

    default CompletableFuture<String> sayHelloAsync(String name) {
        return CompletableFuture.completedFuture(sayHello(name));
    }
}
